<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./demo.css">
</head>
<body>
    <!-- 最大盒模型放大镜1 -->
    <div class="magnifier magnifier1">
        <!-- 图片 -->
        <div class="img">
            <!-- 遮罩框 -->
            <div class="mask"></div>
        </div>
        <!-- 放大镜结果框 -->
        <div class="enlarge"></div>
    </div>
    <br>
    <br>
    <hr>
    <br>
    <br>
    <!-- 最大盒模型放大镜2 -->
    <div class="magnifier magnifier2">
        <!-- 图片 -->
        <div class="img">
            <!-- 遮罩框 -->
            <div class="mask"></div>
        </div>
        <!-- 放大镜结果框 -->
        <div class="enlarge"></div>
    </div>

    <script type="module">
    import Magnifier from './demo.js'
    const magnifier1 = new Magnifier('.magnifier1',{})
    const magnifier2 = new Magnifier('.magnifier2',{})
    </script>
</body>
</html>